{ <description>

  Copyright (C) 2011 Anton A. Lindeberg lindeberg.a@gmail.com

  This source is free software; you can redistribute it and/or modify it under
  the terms of the GNU General Public License as published by the Free
  Software Foundation; either version 2 of the License, or (at your option)
  any later version.

  This code is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  details.

  A copy of the GNU General Public License is available on the World Wide Web
  at <http://www.gnu.org/copyleft/gpl.html>. You can also obtain it by writing
  to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  MA 02111-1307, USA.
}
unit uEditTabSheet;

interface

uses Classes, StdCtrls, ComCtrls, upgeditor, Menus, Messages, Dialogs, ZDataset,
     DB,DBCtrls;

type

  { TEditTabSheet }

  TEditTabSheet = class(TTabSheet)

    procedure WMDestroy(var Msg: TWMDestroy); message WM_DESTROY;
    procedure Close(Sender: TObject);
  private
    fEdt: TpgEditor;
    fpopupmenu: TPopupMenu;
    FOnDestroy: TNotifyEvent;
    FMessageTS: TTabSheet;
    FGridTS: TTabSheet;
    FQuery:  TzQuery;
    FDSrc:   TDataSource;
    FMsg:    TListBox;
    FDBNav:  TDbNavigator;

  published

    property Edt: TpgEditor read fEdt write fEdt;
    property Msg: TListBox read FMsg write FMsg;
    property PopupMenu: TPopupMenu read fpopupmenu write fpopupmenu;
    property MessageTS: TTabSheet read FMessageTS write FMessageTS;
    property GridTS: TTabSheet read FGridTS write FGridTS;
    property Query: TzQuery read FQuery write FQuery;
    property DataSource: TDataSource read FDSrc write FDSrc;
    property OnDestroy: TNotifyEvent read FOnDestroy write FOnDestroy;
    property DBNavigator: TDBNavigator read FDBNav write FDBNav;


  end;



implementation

uses umain;


{ TEditTabSheet }

procedure TEditTabSheet.WMDestroy(var Msg: TWMDestroy);
begin
  if (csDestroying in ComponentState) and Assigned(FOnDestroy) then
    FOnDestroy(Self);
  inherited;
end;

procedure TEditTabSheet.Close(Sender: TObject);
begin


end;

end.
